home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-01-17 | 5.6 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Jan 17 12:04:15 1990, modified Wed Jan 17 12:04:15 1990, creator 'MPS ', type ASCII, 5183 bytes "SCN.013.OOPTESample" , at 0x14bf 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 53 43 4e 2e 30 31 | 33 2e 4f 4f 50 54 45 53 |..SCN.01|3.OOPTES|
|00000010| 61 6d 70 6c 65 00 00 00 | 00 00 00 00 00 00 00 00 |ample...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 14 3f 00 | 00 01 7e a1 da 56 0f a1 |......?.|..~..V..|
|00000060| da 56 0f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.V......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d0 2d 00 00 |........|.....-..|
|00000080| 4d 61 63 69 6e 74 6f 73 | 68 0d 53 61 6d 70 6c 65 |Macintos|h.Sample|
|00000090| 20 43 6f 64 65 20 4e 6f | 74 65 73 0d 5f 5f 5f 5f | Code No|tes.____|
|000000a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 0d 20 20 20 20 20 20 |________|_. |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000110| 20 20 20 20 20 20 20 20 | 20 20 20 20 44 65 76 65 | | Deve|
|00000120| 6c 6f 70 65 72 20 54 65 | 63 68 6e 69 63 61 6c 20 |loper Te|chnical |
|00000130| 53 75 70 70 6f 72 74 0d | 0d 23 31 33 3a 09 4f 4f |Support.|.#13:.OO|
|00000140| 50 54 45 53 61 6d 70 6c | 65 0d 0d 57 72 69 74 74 |PTESampl|e..Writt|
|00000150| 65 6e 20 62 79 3a 09 4b | 65 69 74 68 20 52 6f 6c |en by:.K|eith Rol|
|00000160| 6c 69 6e 0d 0d 56 65 72 | 73 69 6f 6e 73 3a 09 09 |lin..Ver|sions:..|
|00000170| 09 31 2e 30 30 09 09 09 | 09 09 09 41 70 72 69 6c |.1.00...|...April|
|00000180| 20 31 39 38 39 0d 20 20 | 20 20 20 20 20 20 20 20 | 1989. | |
|00000190| 20 20 20 20 20 20 20 20 | 20 20 31 2e 31 20 20 20 | | 1.1 |
|000001a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001b0| 20 20 20 20 20 20 46 65 | 62 72 75 61 72 79 20 31 | Fe|bruary 1|
|000001c0| 39 39 30 0d 0d 43 6f 6d | 70 6f 6e 65 6e 74 73 3a |990..Com|ponents:|
|000001d0| 09 09 09 42 75 69 6c 64 | 4f 4f 50 54 45 53 61 6d |...Build|OOPTESam|
|000001e0| 70 6c 65 09 09 09 46 65 | 62 72 75 61 72 79 20 31 |ple...Fe|bruary 1|
|000001f0| 2c 20 31 39 39 30 0d 09 | 09 09 09 09 4d 4f 4f 50 |, 1990..|....MOOP|
|00000200| 54 45 53 61 6d 70 6c 65 | 2e 70 09 09 09 09 46 65 |TESample|.p....Fe|
|00000210| 62 72 75 61 72 79 20 31 | 2c 20 31 39 39 30 0d 09 |bruary 1|, 1990..|
|00000220| 09 09 09 09 4f 4f 50 54 | 45 53 61 6d 70 6c 65 2e |....OOPT|ESample.|
|00000230| 6d 61 6b 65 09 09 09 46 | 65 62 72 75 61 72 79 20 |make...F|ebruary |
|00000240| 31 2c 20 31 39 39 30 0d | 09 09 09 09 09 54 45 43 |1, 1990.|.....TEC|
|00000250| 6f 6d 6d 6f 6e 2e 68 09 | 09 09 09 09 46 65 62 72 |ommon.h.|....Febr|
|00000260| 75 61 72 79 20 31 2c 20 | 31 39 39 30 0d 09 09 09 |uary 1, |1990....|
|00000270| 09 09 54 45 53 61 6d 70 | 6c 65 47 6c 75 65 2e 61 |..TESamp|leGlue.a|
|00000280| 09 09 09 09 46 65 62 72 | 75 61 72 79 20 31 2c 20 |....Febr|uary 1, |
|00000290| 31 39 39 30 0d 09 09 09 | 09 09 54 45 53 61 6d 70 |1990....|..TESamp|
|000002a0| 6c 65 2e 72 09 09 09 09 | 09 46 65 62 72 75 61 72 |le.r....|.Februar|
|000002b0| 79 20 31 2c 20 31 39 39 | 30 0d 09 09 09 09 09 55 |y 1, 199|0......U|
|000002c0| 41 70 70 6c 69 63 61 74 | 69 6f 6e 2e 70 09 09 09 |Applicat|ion.p...|
|000002d0| 09 46 65 62 72 75 61 72 | 79 20 31 2c 20 31 39 39 |.Februar|y 1, 199|
|000002e0| 30 0d 09 09 09 09 09 55 | 41 70 70 6c 69 63 61 74 |0......U|Applicat|
|000002f0| 69 6f 6e 2e 69 6e 63 31 | 2e 70 09 09 09 46 65 62 |ion.inc1|.p...Feb|
|00000300| 72 75 61 72 79 20 31 2c | 20 31 39 39 30 0d 09 09 |ruary 1,| 1990...|
|00000310| 09 09 09 55 44 6f 63 75 | 6d 65 6e 74 2e 70 09 09 |...UDocu|ment.p..|
|00000320| 09 09 09 46 65 62 72 75 | 61 72 79 20 31 2c 20 31 |...Febru|ary 1, 1|
|00000330| 39 39 30 0d 09 09 09 09 | 09 55 44 6f 63 75 6d 65 |990.....|.UDocume|
|00000340| 6e 74 2e 69 6e 63 31 2e | 70 09 09 09 46 65 62 72 |nt.inc1.|p...Febr|
|00000350| 75 61 72 79 20 31 2c 20 | 31 39 39 30 0d 09 09 09 |uary 1, |1990....|
|00000360| 09 09 55 54 45 44 6f 63 | 75 6d 65 6e 74 2e 70 09 |..UTEDoc|ument.p.|
|00000370| 09 09 09 46 65 62 72 75 | 61 72 79 20 31 2c 20 31 |...Febru|ary 1, 1|
|00000380| 39 39 30 0d 09 09 09 09 | 09 55 54 45 44 6f 63 75 |990.....|.UTEDocu|
|00000390| 6d 65 6e 74 2e 69 6e 63 | 31 2e 70 09 09 09 46 65 |ment.inc|1.p...Fe|
|000003a0| 62 72 75 61 72 79 20 31 | 2c 20 31 39 39 30 0d 09 |bruary 1|, 1990..|
|000003b0| 09 09 09 09 55 54 45 53 | 61 6d 70 6c 65 2e 70 09 |....UTES|ample.p.|
|000003c0| 09 09 09 09 46 65 62 72 | 75 61 72 79 20 31 2c 20 |....Febr|uary 1, |
|000003d0| 31 39 39 30 0d 09 09 09 | 09 09 55 54 45 53 61 6d |1990....|..UTESam|
|000003e0| 70 6c 65 2e 69 6e 63 31 | 2e 70 09 09 09 46 65 62 |ple.inc1|.p...Feb|
|000003f0| 72 75 61 72 79 20 31 2c | 20 31 39 39 30 0d 5f 5f |ruary 1,| 1990.__|
|00000400| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000410| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000420| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000430| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000440| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 0d 0d 54 68 65 |________|___..The|
|00000450| 20 62 75 69 6c 64 20 70 | 72 6f 63 65 73 73 20 66 | build p|rocess f|
|00000460| 6f 72 20 4f 4f 50 54 45 | 53 61 6d 70 6c 65 20 69 |or OOPTE|Sample i|
|00000470| 73 20 65 6e 74 69 72 65 | 6c 79 20 61 75 74 6f 6d |s entire|ly autom|
|00000480| 61 74 65 64 2e 20 20 41 | 6c 6c 20 79 6f 75 20 0d |ated. A|ll you .|
|00000490| 6e 65 65 64 20 74 6f 20 | 64 6f 20 69 73 20 72 75 |need to |do is ru|
|000004a0| 6e 20 74 68 65 20 42 75 | 69 6c 64 4f 4f 50 54 45 |n the Bu|ildOOPTE|
|000004b0| 53 61 6d 70 6c 65 20 73 | 63 72 69 70 74 2e 20 20 |Sample s|cript. |
|000004c0| 42 75 69 6c 64 4f 4f 50 | 54 45 53 61 6d 70 6c 65 |BuildOOP|TESample|
|000004d0| 20 0d 69 73 20 61 20 76 | 61 72 69 61 74 69 6f 6e | .is a v|ariation|
|000004e0| 20 6f 6e 20 74 68 65 20 | 42 75 69 6c 64 50 72 6f | on the |BuildPro|
|000004f0| 67 72 61 6d 20 73 63 72 | 69 70 74 20 74 68 61 74 |gram scr|ipt that|
|00000500| 20 63 6f 6d 65 73 20 73 | 74 61 6e 64 61 72 64 20 | comes s|tandard |
|00000510| 77 69 74 68 20 0d 4d 50 | 57 2e 20 20 49 74 20 63 |with .MP|W. It c|
|00000520| 72 65 61 74 65 73 20 61 | 20 66 6f 6c 64 65 72 20 |reates a| folder |
|00000530| 74 6f 20 63 6f 6e 74 61 | 69 6e 20 74 68 65 20 69 |to conta|in the i|
|00000540| 6e 74 65 72 6d 65 64 69 | 61 72 79 20 6f 62 6a 65 |ntermedi|ary obje|
|00000550| 63 74 20 0d 66 69 6c 65 | 73 2c 20 61 6e 64 20 74 |ct .file|s, and t|
|00000560| 68 65 6e 20 63 61 6c 6c | 73 20 4d 61 6b 65 20 77 |hen call|s Make w|
|00000570| 69 74 68 20 74 68 65 20 | 66 69 6c 65 20 4f 4f 50 |ith the |file OOP|
|00000580| 54 45 53 61 6d 70 6c 65 | 2e 6d 61 6b 65 2e 20 20 |TESample|.make. |
|00000590| 0d 4d 61 6b 65 d5 73 20 | 6f 75 74 70 75 74 20 69 |.Make.s |output i|
|000005a0| 73 20 65 78 65 63 75 74 | 65 64 20 77 69 74 68 20 |s execut|ed with |
|000005b0| 74 68 65 20 66 69 6e 61 | 6c 20 61 70 70 6c 69 63 |the fina|l applic|
|000005c0| 61 74 69 6f 6e 20 4f 4f | 50 54 45 53 61 6d 70 6c |ation OO|PTESampl|
|000005d0| 65 20 0d 61 73 20 74 68 | 65 20 72 65 73 75 6c 74 |e .as th|e result|
|000005e0| 2e 0d 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |..______|________|
|000005f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000600| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000610| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000620| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 0d |________|_______.|
|00000630| 0d 4f 4f 50 54 45 53 61 | 6d 70 6c 65 20 69 73 20 |.OOPTESa|mple is |
|00000640| 61 6e 20 65 78 61 6d 70 | 6c 65 20 61 70 70 6c 69 |an examp|le appli|
|00000650| 63 61 74 69 6f 6e 20 74 | 68 61 74 20 64 65 6d 6f |cation t|hat demo|
|00000660| 6e 73 74 72 61 74 65 73 | 20 68 6f 77 20 74 6f 20 |nstrates| how to |
|00000670| 0d 69 6e 69 74 69 61 6c | 69 7a 65 20 74 68 65 20 |.initial|ize the |
|00000680| 63 6f 6d 6d 6f 6e 6c 79 | 20 75 73 65 64 20 54 6f |commonly| used To|
|00000690| 6f 6c 62 6f 78 20 6d 61 | 6e 61 67 65 72 73 2c 20 |olbox ma|nagers, |
|000006a0| 6f 70 65 72 61 74 65 20 | 0d 73 75 63 63 65 73 73 |operate |.success|
|000006b0| 66 75 6c 6c 79 20 75 6e | 64 65 72 20 4d 75 6c 74 |fully un|der Mult|
|000006c0| 69 46 69 6e 64 65 72 2c | 20 68 61 6e 64 6c 65 20 |iFinder,| handle |
|000006d0| 64 65 73 6b 20 61 63 63 | 65 73 73 6f 72 69 65 73 |desk acc|essories|
|000006e0| 2c 20 61 6e 64 20 0d 63 | 72 65 61 74 65 2c 20 67 |, and .c|reate, g|
|000006f0| 72 6f 77 2c 20 61 6e 64 | 20 7a 6f 6f 6d 20 77 69 |row, and| zoom wi|
|00000700| 6e 64 6f 77 73 2e 20 20 | 49 74 20 64 65 6d 6f 6e |ndows. |It demon|
|00000710| 73 74 72 61 74 65 73 20 | 66 75 6e 64 61 6d 65 6e |strates |fundamen|
|00000720| 74 61 6c 20 0d 54 65 78 | 74 45 64 69 74 20 74 6f |tal .Tex|tEdit to|
|00000730| 6f 6c 62 6f 78 20 63 61 | 6c 6c 73 20 61 6e 64 20 |olbox ca|lls and |
|00000740| 54 65 78 74 45 64 69 74 | 20 61 75 74 6f 6d 61 74 |TextEdit| automat|
|00000750| 69 63 20 73 63 72 6f 6c | 6c 69 6e 67 2c 20 61 6e |ic scrol|ling, an|
|00000760| 64 20 69 74 20 0d 73 68 | 6f 77 73 20 68 6f 77 20 |d it .sh|ows how |
|00000770| 74 6f 20 63 72 65 61 74 | 65 20 61 6e 64 20 6d 61 |to creat|e and ma|
|00000780| 69 6e 74 61 69 6e 20 73 | 63 72 6f 6c 6c 20 62 61 |intain s|croll ba|
|00000790| 72 20 63 6f 6e 74 72 6f | 6c 73 2e 0d 0d 54 68 69 |r contro|ls...Thi|
|000007a0| 73 20 76 65 72 73 69 6f | 6e 20 6f 66 20 54 45 53 |s versio|n of TES|
|000007b0| 61 6d 70 6c 65 20 68 61 | 73 20 62 65 65 6e 20 73 |ample ha|s been s|
|000007c0| 75 62 73 74 61 6e 74 69 | 61 6c 6c 79 20 72 65 77 |ubstanti|ally rew|
|000007d0| 6f 72 6b 65 64 20 69 6e | 20 4f 62 6a 65 63 74 20 |orked in| Object |
|000007e0| 0d 50 61 73 63 61 6c 20 | 74 6f 20 73 68 6f 77 20 |.Pascal |to show |
|000007f0| 68 6f 77 20 61 20 d2 74 | 79 70 69 63 61 6c d3 20 |how a .t|ypical. |
|00000800| 6f 62 6a 65 63 74 2d 6f | 72 69 65 6e 74 65 64 20 |object-o|riented |
|00000810| 70 72 6f 67 72 61 6d 20 | 63 6f 75 6c 64 20 62 65 |program |could be|
|00000820| 20 0d 77 72 69 74 74 65 | 6e 2e 20 20 54 6f 20 74 | .writte|n. To t|
|00000830| 68 69 73 20 65 6e 64 2c | 20 77 68 61 74 20 77 61 |his end,| what wa|
|00000840| 73 20 6f 6e 63 65 20 61 | 20 73 69 6e 67 6c 65 20 |s once a| single |
|00000850| 73 6f 75 72 63 65 20 63 | 6f 64 65 20 66 69 6c 65 |source c|ode file|
|00000860| 20 68 61 73 20 0d 62 65 | 65 6e 20 72 65 73 74 72 | has .be|en restr|
|00000870| 75 63 74 75 72 65 64 20 | 69 6e 74 6f 20 61 20 73 |uctured |into a s|
|00000880| 65 74 20 6f 66 20 63 6c | 61 73 73 65 73 20 77 68 |et of cl|asses wh|
|00000890| 69 63 68 20 64 65 6d 6f | 6e 73 74 72 61 74 65 20 |ich demo|nstrate |
|000008a0| 74 68 65 20 0d 61 64 76 | 61 6e 74 61 67 65 73 20 |the .adv|antages |
|000008b0| 6f 66 20 6f 62 6a 65 63 | 74 2d 6f 72 69 65 6e 74 |of objec|t-orient|
|000008c0| 65 64 20 70 72 6f 67 72 | 61 6d 6d 69 6e 67 2e 0d |ed progr|amming..|
|000008d0| 0d 54 68 65 72 65 20 61 | 72 65 20 66 6f 75 72 20 |.There a|re four |
|000008e0| 6d 61 69 6e 20 63 6c 61 | 73 73 65 73 20 69 6e 20 |main cla|sses in |
|000008f0| 74 68 69 73 20 70 72 6f | 67 72 61 6d 2e 20 20 45 |this pro|gram. E|
|00000900| 61 63 68 20 6f 6e 65 20 | 6f 66 20 74 68 65 73 65 |ach one |of these|
|00000910| 20 0d 68 61 73 20 61 6e | 20 69 6e 74 65 72 66 61 | .has an| interfa|
|00000920| 63 65 20 28 2e 70 29 20 | 66 69 6c 65 20 61 6e 64 |ce (.p) |file and|
|00000930| 20 61 6e 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 | an impl|ementati|
|00000940| 6f 6e 20 28 2e 69 6e 63 | 31 2e 70 29 20 66 69 6c |on (.inc|1.p) fil|
|00000950| 65 2c 20 0d 61 6e 64 20 | 69 73 20 63 6f 6d 70 69 |e, .and |is compi|
|00000960| 6c 65 64 20 69 6e 74 6f | 20 69 74 73 20 6f 77 6e |led into| its own|
|00000970| 20 73 65 70 61 72 61 74 | 65 20 55 4e 49 54 2e 0d | separat|e UNIT..|
|00000980| 0d 54 68 65 20 54 41 70 | 70 6c 69 63 61 74 69 6f |.The TAp|plicatio|
|00000990| 6e 20 63 6c 61 73 73 20 | 64 6f 65 73 20 61 6c 6c |n class |does all|
|000009a0| 20 6f 66 20 74 68 65 20 | 62 61 73 69 63 20 65 76 | of the |basic ev|
|000009b0| 65 6e 74 20 68 61 6e 64 | 6c 69 6e 67 20 61 6e 64 |ent hand|ling and|
|000009c0| 20 0d 69 6e 69 74 69 61 | 6c 69 7a 61 74 69 6f 6e | .initia|lization|
|000009d0| 20 6e 65 63 65 73 73 61 | 72 79 20 66 6f 72 20 4d | necessa|ry for M|
|000009e0| 61 63 69 6e 74 6f 73 68 | 20 54 6f 6f 6c 62 6f 78 |acintosh| Toolbox|
|000009f0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 2e 20 20 | applica|tions. |
|00000a00| 49 74 20 0d 6d 61 69 6e | 74 61 69 6e 73 20 61 20 |It .main|tains a |
|00000a10| 6c 69 73 74 20 6f 66 20 | 54 44 6f 63 75 6d 65 6e |list of |TDocumen|
|00000a20| 74 20 6f 62 6a 65 63 74 | 73 20 61 6e 64 20 70 61 |t object|s and pa|
|00000a30| 73 73 65 73 20 65 76 65 | 6e 74 73 20 74 6f 20 74 |sses eve|nts to t|
|00000a40| 68 65 20 0d 63 6f 72 72 | 65 63 74 20 54 44 6f 63 |he .corr|ect TDoc|
|00000a50| 75 6d 65 6e 74 20 63 6c | 61 73 73 20 77 68 65 6e |ument cl|ass when|
|00000a60| 20 61 70 70 72 6f 70 72 | 69 61 74 65 2e 0d 0d 54 | appropr|iate...T|
|00000a70| 68 65 20 54 44 6f 63 75 | 6d 65 6e 74 20 63 6c 61 |he TDocu|ment cla|
|00000a80| 73 73 20 64 6f 65 73 20 | 61 6c 6c 20 6f 66 20 74 |ss does |all of t|
|00000a90| 68 65 20 62 61 73 69 63 | 20 64 6f 63 75 6d 65 6e |he basic| documen|
|00000aa0| 74 20 68 61 6e 64 6c 69 | 6e 67 20 77 6f 72 6b 2e |t handli|ng work.|
|00000ab0| 20 20 0d 54 44 6f 63 75 | 6d 65 6e 74 73 20 61 72 | .TDocu|ments ar|
|00000ac0| 65 20 6f 62 6a 65 63 74 | 73 20 74 68 61 74 20 61 |e object|s that a|
|00000ad0| 72 65 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |re assoc|iated wi|
|00000ae0| 74 68 20 61 20 77 69 6e | 64 6f 77 2e 20 20 4d 65 |th a win|dow. Me|
|00000af0| 74 68 6f 64 73 20 0d 61 | 72 65 20 70 72 6f 76 69 |thods .a|re provi|
|00000b00| 64 65 64 20 74 6f 20 64 | 65 61 6c 20 77 69 74 68 |ded to d|eal with|
|00000b10| 20 75 70 64 61 74 65 2c | 20 61 63 74 69 76 61 74 | update,| activat|
|00000b20| 65 2c 20 6d 6f 75 73 65 | 2d 63 6c 69 63 6b 2c 20 |e, mouse|-click, |
|00000b30| 6b 65 79 2d 64 6f 77 6e | 2c 20 0d 61 6e 64 20 6f |key-down|, .and o|
|00000b40| 74 68 65 72 20 65 76 65 | 6e 74 73 2e 20 20 53 6f |ther eve|nts. So|
|00000b50| 6d 65 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 63 6c |me addit|ional cl|
|00000b60| 61 73 73 65 73 20 77 68 | 69 63 68 20 69 6d 70 6c |asses wh|ich impl|
|00000b70| 65 6d 65 6e 74 20 61 20 | 0d 6c 69 6e 6b 65 64 20 |ement a |.linked |
|00000b80| 6c 69 73 74 20 6f 66 20 | 54 44 6f 63 75 6d 65 6e |list of |TDocumen|
|00000b90| 74 20 6f 62 6a 65 63 74 | 73 20 61 72 65 20 70 72 |t object|s are pr|
|00000ba0| 6f 76 69 64 65 64 2e 0d | 0d 54 68 65 20 54 41 70 |ovided..|.The TAp|
|00000bb0| 70 6c 69 63 61 74 69 6f | 6e 20 61 6e 64 20 54 44 |plicatio|n and TD|
|00000bc0| 6f 63 75 6d 65 6e 74 20 | 63 6c 61 73 73 65 73 20 |ocument |classes |
|00000bd0| 74 6f 67 65 74 68 65 72 | 20 64 65 66 69 6e 65 20 |together| define |
|00000be0| 61 20 62 61 73 69 63 20 | 0d 66 72 61 6d 65 77 6f |a basic |.framewo|
|00000bf0| 72 6b 20 66 6f 72 20 4d | 61 63 69 6e 74 6f 73 68 |rk for M|acintosh|
|00000c00| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 2c 20 77 | applica|tions, w|
|00000c10| 69 74 68 6f 75 74 20 68 | 61 76 69 6e 67 20 61 6e |ithout h|aving an|
|00000c20| 79 20 73 70 65 63 69 66 | 69 63 20 0d 6b 6e 6f 77 |y specif|ic .know|
|00000c30| 6c 65 64 67 65 20 61 62 | 6f 75 74 20 74 68 65 20 |ledge ab|out the |
|00000c40| 74 79 70 65 20 6f 66 20 | 64 61 74 61 20 62 65 69 |type of |data bei|
|00000c50| 6e 67 20 64 69 73 70 6c | 61 79 65 64 20 62 79 20 |ng displ|ayed by |
|00000c60| 74 68 65 20 0d 61 70 70 | 6c 69 63 61 74 69 6f 6e |the .app|lication|
|00000c70| d5 73 20 64 6f 63 75 6d | 65 6e 74 73 2e 20 54 68 |.s docum|ents. Th|
|00000c80| 65 79 20 61 72 65 20 61 | 20 28 76 65 72 79 29 20 |ey are a| (very) |
|00000c90| 63 72 75 64 65 20 69 6d | 70 6c 65 6d 65 6e 74 61 |crude im|plementa|
|00000ca0| 74 69 6f 6e 20 6f 66 20 | 0d 74 68 65 20 4d 61 63 |tion of |.the Mac|
|00000cb0| 41 70 70 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |App appl|ication |
|00000cc0| 6d 6f 64 65 6c 2c 20 77 | 69 74 68 6f 75 74 20 74 |model, w|ithout t|
|00000cd0| 68 65 20 73 6f 70 68 69 | 73 74 69 63 61 74 65 64 |he sophi|sticated|
|00000ce0| 20 76 69 65 77 20 0d 68 | 69 65 72 61 72 63 68 69 | view .h|ierarchi|
|00000cf0| 65 73 20 6f 72 20 61 6e | 79 20 72 65 61 6c 20 65 |es or an|y real e|
|00000d00| 72 72 6f 72 20 68 61 6e | 64 6c 69 6e 67 2e 0d 0d |rror han|dling...|
|00000d10| 54 68 65 20 54 45 53 61 | 6d 70 6c 65 20 63 6c 61 |The TESa|mple cla|
|00000d20| 73 73 20 69 73 20 61 20 | 73 75 62 63 6c 61 73 73 |ss is a |subclass|
|00000d30| 20 6f 66 20 54 41 70 70 | 6c 69 63 61 74 69 6f 6e | of TApp|lication|
|00000d40| 2e 20 20 49 74 20 6f 76 | 65 72 72 69 64 65 73 20 |. It ov|errides |
|00000d50| 0d 73 65 76 65 72 61 6c | 20 54 41 70 70 6c 69 63 |.several| TApplic|
|00000d60| 61 74 69 6f 6e 20 6d 65 | 74 68 6f 64 73 2c 20 69 |ation me|thods, i|
|00000d70| 6e 63 6c 75 64 69 6e 67 | 20 74 68 6f 73 65 20 66 |ncluding| those f|
|00000d80| 6f 72 20 68 61 6e 64 6c | 69 6e 67 20 6d 65 6e 75 |or handl|ing menu|
|00000d90| 20 0d 63 6f 6d 6d 61 6e | 64 73 20 61 6e 64 20 63 | .comman|ds and c|
|00000da0| 75 72 73 6f 72 20 61 64 | 6a 75 73 74 6d 65 6e 74 |ursor ad|justment|
|00000db0| 2c 20 61 6e 64 20 69 74 | 20 64 6f 65 73 20 73 6f |, and it| does so|
|00000dc0| 6d 65 20 6e 65 63 65 73 | 73 61 72 79 20 0d 69 6e |me neces|sary .in|
|00000dd0| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 2e 20 20 4e |itializa|tion. N|
|00000de0| 6f 74 65 20 74 68 61 74 | 20 77 65 20 6f 6e 6c 79 |ote that| we only|
|00000df0| 20 6e 65 65 64 20 74 6f | 20 6f 76 65 72 72 69 64 | need to| overrid|
|00000e00| 65 20 6e 69 6e 65 20 6d | 65 74 68 6f 64 73 20 0d |e nine m|ethods .|
|00000e10| 74 6f 20 63 72 65 61 74 | 65 20 61 20 75 73 65 66 |to creat|e a usef|
|00000e20| 75 6c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 63 |ul appli|cation c|
|00000e30| 6c 61 73 73 2e 0d 0d 54 | 68 65 20 54 45 44 6f 63 |lass...T|he TEDoc|
|00000e40| 75 6d 65 6e 74 20 63 6c | 61 73 73 20 69 73 20 61 |ument cl|ass is a|
|00000e50| 20 73 75 62 63 6c 61 73 | 73 20 6f 66 20 54 44 6f | subclas|s of TDo|
|00000e60| 63 75 6d 65 6e 74 2e 20 | 20 54 68 69 73 20 63 6c |cument. | This cl|
|00000e70| 61 73 73 20 0d 63 6f 6e | 74 61 69 6e 73 20 6d 6f |ass .con|tains mo|
|00000e80| 73 74 20 6f 66 20 74 68 | 65 20 73 70 65 63 69 61 |st of th|e specia|
|00000e90| 6c 2d 70 75 72 70 6f 73 | 65 20 63 6f 64 65 20 66 |l-purpos|e code f|
|00000ea0| 6f 72 20 74 65 78 74 20 | 65 64 69 74 69 6e 67 2e |or text |editing.|
|00000eb0| 20 20 49 6e 20 0d 61 64 | 64 69 74 69 6f 6e 20 74 | In .ad|dition t|
|00000ec0| 6f 20 6f 76 65 72 72 69 | 64 69 6e 67 20 6d 6f 73 |o overri|ding mos|
|00000ed0| 74 20 6f 66 20 74 68 65 | 20 54 44 6f 63 75 6d 65 |t of the| TDocume|
|00000ee0| 6e 74 20 6d 65 74 68 6f | 64 73 2c 20 69 74 20 64 |nt metho|ds, it d|
|00000ef0| 65 66 69 6e 65 73 20 61 | 20 0d 6e 75 6d 62 65 72 |efines a| .number|
|00000f00| 20 6f 66 20 61 64 64 69 | 74 69 6f 6e 61 6c 20 6d | of addi|tional m|
|00000f10| 65 74 68 6f 64 73 20 77 | 68 69 63 68 20 61 72 65 |ethods w|hich are|
|00000f20| 20 75 73 65 64 20 62 79 | 20 74 68 65 20 54 45 53 | used by| the TES|
|00000f30| 61 6d 70 6c 65 20 63 6c | 61 73 73 20 0d 74 6f 20 |ample cl|ass .to |
|00000f40| 67 65 74 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |get info|rmation |
|00000f50| 6f 6e 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 20 |on the d|ocument |
|00000f60| 73 74 61 74 65 2e 0d 0d | 54 68 69 73 20 70 72 6f |state...|This pro|
|00000f70| 67 72 61 6d 20 63 6f 6e | 73 69 73 74 73 20 6f 66 |gram con|sists of|
|00000f80| 20 66 6f 75 72 20 73 65 | 67 6d 65 6e 74 73 2e 20 | four se|gments. |
|00000f90| 20 d2 4d 61 69 6e d3 20 | 63 6f 6e 74 61 69 6e 73 | .Main. |contains|
|00000fa0| 20 6d 6f 73 74 20 6f 66 | 20 0d 74 68 65 20 63 6f | most of| .the co|
|00000fb0| 64 65 2c 20 69 6e 63 6c | 75 64 69 6e 67 20 74 68 |de, incl|uding th|
|00000fc0| 65 20 4d 50 57 20 6c 69 | 62 72 61 72 69 65 73 20 |e MPW li|braries |
|00000fd0| 61 6e 64 20 74 68 65 20 | 6d 61 69 6e 20 70 72 6f |and the |main pro|
|00000fe0| 67 72 61 6d 2e 20 20 0d | d2 49 6e 69 74 69 61 6c |gram. .|.Initial|
|00000ff0| 69 7a 65 d3 20 63 6f 6e | 74 61 69 6e 73 20 63 6f |ize. con|tains co|
|00001000| 64 65 20 74 68 61 74 20 | 69 73 20 75 73 65 64 20 |de that |is used |
|00001010| 6f 6e 6c 79 20 6f 6e 63 | 65 2c 20 6f 72 20 72 61 |only onc|e, or ra|
|00001020| 72 65 6c 79 2c 20 61 6e | 64 20 0d 63 61 6e 20 62 |rely, an|d .can b|
|00001030| 65 20 75 6e 6c 6f 61 64 | 65 64 20 61 66 74 65 72 |e unload|ed after|
|00001040| 20 74 68 65 20 65 76 65 | 6e 74 20 6c 6f 6f 70 20 | the eve|nt loop |
|00001050| 69 73 20 63 6f 6d 70 6c | 65 74 65 64 2e 20 20 d2 |is compl|eted. .|
|00001060| 25 41 35 49 6e 69 74 d3 | 20 69 73 20 0d 61 75 74 |%A5Init.| is .aut|
|00001070| 6f 6d 61 74 69 63 61 6c | 6c 79 20 63 72 65 61 74 |omatical|ly creat|
|00001080| 65 64 20 62 79 20 74 68 | 65 20 4c 69 6e 6b 65 72 |ed by th|e Linker|
|00001090| 20 74 6f 20 69 6e 69 74 | 69 61 6c 69 7a 65 20 67 | to init|ialize g|
|000010a0| 6c 6f 62 61 6c 73 20 66 | 6f 72 20 74 68 65 20 0d |lobals f|or the .|
|000010b0| 4d 50 57 20 6c 69 62 72 | 61 72 69 65 73 20 61 6e |MPW libr|aries an|
|000010c0| 64 20 69 73 20 75 6e 6c | 6f 61 64 65 64 20 72 69 |d is unl|oaded ri|
|000010d0| 67 68 74 20 61 77 61 79 | 2e 20 20 d2 25 5f 4d 65 |ght away|. .%_Me|
|000010e0| 74 68 54 61 62 6c 65 73 | d3 20 69 73 20 61 20 0d |thTables|. is a .|
|000010f0| 66 61 6b 65 20 73 65 67 | 6d 65 6e 74 20 75 73 65 |fake seg|ment use|
|00001100| 64 20 62 79 20 4f 62 6a | 65 63 74 20 50 61 73 63 |d by Obj|ect Pasc|
|00001110| 61 6c 20 74 6f 20 6d 61 | 69 6e 74 61 69 6e 20 6f |al to ma|intain o|
|00001120| 62 6a 65 63 74 20 0d 72 | 65 6c 61 74 69 6f 6e 73 |bject .r|elations|
|00001130| 68 69 70 73 2e 0d 0d 54 | 6f 6f 6c 62 6f 78 20 72 |hips...T|oolbox r|
|00001140| 6f 75 74 69 6e 65 73 20 | 64 6f 20 6e 6f 74 20 63 |outines |do not c|
|00001150| 68 61 6e 67 65 20 74 68 | 65 20 63 75 72 72 65 6e |hange th|e curren|
|00001160| 74 20 70 6f 72 74 2e 20 | 20 49 6e 20 73 70 69 74 |t port. | In spit|
|00001170| 65 20 6f 66 20 0d 74 68 | 69 73 2c 20 69 6e 20 74 |e of .th|is, in t|
|00001180| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 77 65 20 75 |his prog|ram we u|
|00001190| 73 65 20 61 20 73 74 72 | 61 74 65 67 79 20 6f 66 |se a str|ategy of|
|000011a0| 20 63 61 6c 6c 69 6e 67 | 20 5f 53 65 74 50 6f 72 | calling| _SetPor|
|000011b0| 74 20 0d 77 68 65 6e 65 | 76 65 72 20 77 65 20 77 |t .whene|ver we w|
|000011c0| 61 6e 74 20 74 6f 20 64 | 72 61 77 20 6f 72 20 6d |ant to d|raw or m|
|000011d0| 61 6b 65 20 63 61 6c 6c | 73 20 77 68 69 63 68 20 |ake call|s which |
|000011e0| 64 65 70 65 6e 64 20 6f | 6e 20 74 68 65 20 63 75 |depend o|n the cu|
|000011f0| 72 72 65 6e 74 20 0d 70 | 6f 72 74 2e 20 20 54 68 |rrent .p|ort. Th|
|00001200| 69 73 20 70 72 65 63 61 | 75 74 69 6f 6e 20 6d 61 |is preca|ution ma|
|00001210| 6b 65 73 20 75 73 20 6c | 65 73 73 20 76 75 6c 6e |kes us l|ess vuln|
|00001220| 65 72 61 62 6c 65 20 74 | 6f 20 62 75 67 73 20 69 |erable t|o bugs i|
|00001230| 6e 20 6f 74 68 65 72 20 | 0d 73 6f 66 74 77 61 72 |n other |.softwar|
|00001240| 65 20 77 68 69 63 68 20 | 6d 69 67 68 74 20 61 6c |e which |might al|
|00001250| 74 65 72 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ter the |current |
|00001260| 70 6f 72 74 20 28 73 75 | 63 68 20 61 73 20 74 68 |port (su|ch as th|
|00001270| 65 20 62 75 67 20 0d 28 | 66 65 61 74 75 72 65 3f |e bug .(|feature?|
|00001280| 29 20 69 6e 20 6d 61 6e | 79 20 64 65 73 6b 20 61 |) in man|y desk a|
|00001290| 63 63 65 73 73 6f 72 69 | 65 73 20 77 68 69 63 68 |ccessori|es which|
|000012a0| 20 63 68 61 6e 67 65 73 | 20 74 68 65 20 70 6f 72 | changes| the por|
|000012b0| 74 20 77 68 65 6e 20 0d | 74 68 65 72 65 20 69 73 |t when .|there is|
|000012c0| 20 61 20 63 61 6c 6c 20 | 74 6f 20 5f 4f 70 65 6e | a call |to _Open|
|000012d0| 44 65 73 6b 41 63 63 29 | 2e 20 20 48 6f 70 65 66 |DeskAcc)|. Hopef|
|000012e0| 75 6c 6c 79 2c 20 74 68 | 69 73 20 61 6c 73 6f 20 |ully, th|is also |
|000012f0| 6d 61 6b 65 73 20 74 68 | 65 20 0d 72 6f 75 74 69 |makes th|e .routi|
|00001300| 6e 65 73 20 66 72 6f 6d | 20 74 68 69 73 20 70 72 |nes from| this pr|
|00001310| 6f 67 72 61 6d 20 6d 6f | 72 65 20 73 65 6c 66 2d |ogram mo|re self-|
|00001320| 63 6f 6e 74 61 69 6e 65 | 64 2c 20 73 69 6e 63 65 |containe|d, since|
|00001330| 20 74 68 65 79 20 64 6f | 6e d5 74 20 0d 64 65 70 | they do|n.t .dep|
|00001340| 65 6e 64 20 6f 6e 20 74 | 68 65 20 63 75 72 72 65 |end on t|he curre|
|00001350| 6e 74 20 70 6f 72 74 20 | 73 65 74 74 69 6e 67 2e |nt port |setting.|
|00001360| 0d 0d 54 68 69 73 20 70 | 72 6f 67 72 61 6d 20 64 |..This p|rogram d|
|00001370| 6f 65 73 20 6e 6f 74 20 | 6d 61 69 6e 74 61 69 6e |oes not |maintain|
|00001380| 20 61 20 70 72 69 76 61 | 74 65 20 73 63 72 61 70 | a priva|te scrap|
|00001390| 2e 20 20 57 68 65 6e 65 | 76 65 72 20 61 20 63 75 |. Whene|ver a cu|
|000013a0| 74 2c 20 0d 63 6f 70 79 | 2c 20 6f 72 20 70 61 73 |t, .copy|, or pas|
|000013b0| 74 65 20 6f 63 63 75 72 | 73 2c 20 77 65 20 69 6d |te occur|s, we im|
|000013c0| 70 6f 72 74 20 6f 72 20 | 65 78 70 6f 72 74 20 66 |port or |export f|
|000013d0| 72 6f 6d 20 74 68 65 20 | 70 75 62 6c 69 63 20 73 |rom the |public s|
|000013e0| 63 72 61 70 20 0d 74 6f | 20 54 65 78 74 45 64 69 |crap .to| TextEdi|
|000013f0| 74 d5 73 20 73 63 72 61 | 70 20 72 69 67 68 74 20 |t.s scra|p right |
|00001400| 61 77 61 79 2c 20 75 73 | 69 6e 67 20 74 68 65 20 |away, us|ing the |
|00001410| 54 45 54 6f 53 63 72 61 | 70 20 61 6e 64 20 0d 54 |TEToScra|p and .T|
|00001420| 45 46 72 6f 6d 53 63 72 | 61 70 20 72 6f 75 74 69 |EFromScr|ap routi|
|00001430| 6e 65 73 2e 20 20 49 66 | 20 77 65 20 64 69 64 20 |nes. If| we did |
|00001440| 75 73 65 20 61 20 70 72 | 69 76 61 74 65 20 73 63 |use a pr|ivate sc|
|00001450| 72 61 70 2c 20 74 68 65 | 20 69 6d 70 6f 72 74 20 |rap, the| import |
|00001460| 0d 6f 72 20 65 78 70 6f | 72 74 20 77 6f 75 6c 64 |.or expo|rt would|
|00001470| 20 62 65 20 69 6e 20 74 | 68 65 20 61 63 74 69 76 | be in t|he activ|
|00001480| 61 74 65 20 6f 72 20 64 | 65 61 63 74 69 76 61 74 |ate or d|eactivat|
|00001490| 65 20 65 76 65 6e 74 20 | 61 6e 64 20 73 75 73 70 |e event |and susp|
|000014a0| 65 6e 64 20 0d 6f 72 20 | 72 65 73 75 6d 65 20 65 |end .or |resume e|
|000014b0| 76 65 6e 74 20 72 6f 75 | 74 69 6e 65 73 2e 0d 00 |vent rou|tines...|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001510| 63 6f 6d 6d 65 6e 64 20 | 74 68 61 74 20 79 6f 75 |commend |that you|
|00001520| 20 72 65 76 69 65 77 20 | 53 61 6d 70 6c 65 20 6f | review |Sample o|
|00001530| 13 53 43 4e 2e 30 31 33 | 2e 4f 4f 50 54 45 53 61 |.SCN.013|.OOPTESa|
|00001540| 6d 70 6c 65 02 00 00 00 | 54 45 58 54 4d 50 53 20 |mple....|TEXTMPS |
|00001550| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 00 |..TEXTMP|S ......|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 a0 76 f4 95 00 00 | 14 3f 00 00 01 7e 65 20 |...v....|.?...~e |
|00001580| 77 68 65 6e 20 77 72 69 | 74 69 6e 67 20 61 20 0d |when wri|ting a .|
|00001590| 6e 65 77 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |new appl|ication.|
|000015a0| 0d 00 00 00 00 00 00 00 | 00 00 00 ff ff 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 ff 00 00 00 | ff ff 00 00 00 ff 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| ff ff 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 1e 00 f8 |...H..Mo|naco....|
|00001610| 00 b6 00 00 00 00 00 00 | 00 00 00 48 00 00 00 48 |........|...H...H|
|00001620| 00 00 00 00 00 08 00 06 | 00 04 00 2a 00 03 01 dd |........|...*....|
|00001630| 02 7d 01 2c 00 00 01 dd | 02 3d a1 da 1d cf 00 00 |.}.,....|.=......|
|00001640| 04 e4 00 00 04 e4 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00001650| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 59 1e 94 |...L...L|...2.Y..|
|00001660| 05 26 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.&.....2|..MPSR..|
|00001670| 00 0a 03 ed ff ff 00 00 | 00 00 00 5a c7 00 00 00 |........|...Z....|
+--------+-------------------------+-------------------------+--------+--------+